<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $_title;?></title>

<?php
if( !empty($adminCSS) ){
	if ( is_array($adminCSS) ){
		foreach( $adminCSS as $filename ){
			$filename = _ADMIN_CSS_ . $filename;
			echo '<link type="text/css" rel="stylesheet" href="'.$filename.'"></script>';
		}
	}else{
			$filename = _ADMIN_CSS_ . $adminCSS;
			echo '<script type="text/javascript" src="'.$filename.'"></script>';
	}
}

if( !empty($adminJS) ){
	if ( is_array($adminJS) ){
		foreach( $adminJS as $filename ){
			$filename = _ADMIN_JS_ . $filename;
			echo '<script type="text/javascript" src="'.$filename.'"></script>';
		}
	}else{
			$filename = _ADMIN_JS_ . $adminJs;
			echo '<script type="text/javascript" src="'.$filename.'"></script>';
	}
}

if( !empty($_extraJS) ){
    if ( is_array($_extraJS) ){
        foreach( $_extraJS as $filename ){
            $filename = $filename;
            echo '<script type="text/javascript" src="'.$filename.'"></script>';
        }
    }else{
            $filename =  $adminJs;
            echo '<script type="text/javascript" src="'.$filename.'"></script>';
    }
}

?>
 <!-- Initiate WYIWYG text area -->
		<script type="text/javascript">
			$(function()
			{
			$('#wysiwyg').wysiwyg(
			{
			controls : {
			separator01 : { visible : true },
			separator03 : { visible : true },
			separator04 : { visible : true },
			separator00 : { visible : true },
			separator07 : { visible : false },
			separator02 : { visible : false },
			separator08 : { visible : false },
			insertOrderedList : { visible : true },
			insertUnorderedList : { visible : true },
			undo: { visible : true },
			redo: { visible : true },
			justifyLeft: { visible : true },
			justifyCenter: { visible : true },
			justifyRight: { visible : true },
			justifyFull: { visible : true },
			subscript: { visible : true },
			superscript: { visible : true },
			underline: { visible : true },
            increaseFontSize : { visible : false },
            decreaseFontSize : { visible : false }
			}
			} );
			});
        </script>
        
        <!-- Initiate tablesorter script -->
        <script type="text/javascript">
			$(document).ready(function() { 
				$("#myTable") 
				.tablesorter({
					// zebra coloring
					widgets: ['zebra'],
					// pass the headers argument and assing a object 
					headers: { 
						// assign the sixth column (we start counting zero) 
						6: { 
							// disable it by setting the property sorter to false 
							sorter: false 
						} 
					}
				}) 
			.tablesorterPager({container: $("#pager")}); 
		}); 
		</script>
        
        <!-- Initiate password strength script -->
		<script type="text/javascript">
			$(function() {
			$('.password').pstrength();
			});
        </script>
</head>
<body>
